<?php 
require_once('../classes/config.inc.php');
require_once('../classes/Session.php');
sleep(1);
$session = new UserSession();
$session->open();
if($session->check())
	echo "<a href=\"profile.php\">Profil</a> / <a id=\"logout\">Logga ut</a>[". substr($session->getEmail(),0,12) ."] / <a href=\"\">Karta &ouml;ver hemsidan</a>";
else
	echo "<a href=\"register.php\">Registrera dig</a> / <a id=\"login\">Logga in</a> / <a href=\"sitemap.php\">Karta &ouml;ver hemsidan</a>";
?>